<template>
  <div class="tab-bar">
    <div class="tabs">
      <van-tabs 
      v-model:active="activeTab" 
      background="none"
       color="#fff"
       title-inactive-color="#fff"
       title-active-color="#fff"
       >
        <van-tab v-for="item in TABS" :title="item.name" :name="item.value">
        </van-tab>
      </van-tabs>
    </div>

    <div class="tab-icon">
      <van-icon name="bars" color="#fff" size="30" />
    </div>
  </div>
</template>

<script setup lang="ts">
import { ref } from "vue";
import { TAB_TYPE, TABS } from "@/config/tabs";

const activeTab = ref(TAB_TYPE.INDEX);
</script>

<style lang="less" scoped>
.tab-bar {
  display: flex;

  .tabs {
    flex: 1;
    width: 0;
  }

  .tab-icon {
    height: 44px;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
</style>
